博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
BOOT客户管理系统IDEA开发(一)
阅读量:3939 次
发布时间:2019-05-23

本文共 8430 字,大约阅读时间需要 28 分钟。

一、开发环境

IntelliJ IDEA 2019.3.1 + MySQL 5.7.25

二、系统文件组织结构

12

注:out和target是自动生成不需要手动创建

三、准备所需JAR包

在这里插入图片描述

在这里插入图片描述
注:mysql-connector-java包不建议用最新的,连接低版本数据库可能会报错
话不多说,小编找了好久的包放云盘了
https://pan.baidu.com/s/1aiy3K80bxA61rB7rm3x3Mg

四、开始配置配置文件

applicationContext.xml

 

db.properties

jdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/boot_crmjdbc.username=rootjdbc.password=你的数据库密码jdbc.maxTotal=30jdbc.maxIdle=10jdbc.initialSize=5

log4j.properties

# Global logging configurationlog4j.rootLogger=ERROR, stdout# MyBatis logging configuration...log4j.logger.com.itheima.core=DEBUG# Console output...log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
 

mybatis-config.xml

resource.properties

customer.from.type=002customer.industry.type=001customer.level.type=006
 

springmvc-config.xml

 

web.xml

contextConfigLocation
classpath:applicationContext.xml
org.springframework.web.context.ContextLoaderListener
encoding
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
encoding
*.action
crm
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:springmvc-config.xml
1
crm
*.action
index.jsp
 

五、开始配置JSP

index.jsp

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
 

login.jsp

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>    登录页面    
 

customer.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"         pageEncoding="UTF-8"%><%@ page trimDirectiveWhitespaces="true"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%--<%@ taglib prefix="itheima" uri="http://itheima.com/common/"%>--%><%    String path = request.getContextPath();    String basePath = request.getScheme() + "://" + request.getServerName()            + ":" + request.getServerPort() + path + "/";%>    
客户管理-BootCRM

客户管理

新建
客户信息列表
编号 客户名称 客户来源 客户所属行业 客户级别 固定电话 手机 操作
${ row.cust_id} ${ row.cust_name} ${ row.cust_source} ${ row.cust_industry} ${ row.cust_level} ${ row.cust_phone} ${ row.cust_mobile} 修改 删除

转载地址:http://hwywi.baihongyu.com/

你可能感兴趣的文章
Python学习笔记之特点
查看>>
Python学习笔记之安装
查看>>
shell 快捷键
查看>>
VIM滚屏操作
查看>>
EMC 2014存储布局及十大新技术要点
查看>>
linux内核内存管理(zone_dma zone_normal zone_highmem)
查看>>
将file文件内容转成字符串
查看>>
循环队列---数据结构和算法
查看>>
优先级队列-数据结构和算法
查看>>
链接点--数据结构和算法
查看>>
servlet中请求转发(forword)与重定向(sendredirect)的区别
查看>>
Spring4的IoC和DI的区别
查看>>
springcloud 的eureka服务注册demo
查看>>
eureka-client.properties文件配置
查看>>
MODULE_DEVICE_TABLE的理解
查看>>
platform_device与platform_driver
查看>>
platform_driver平台驱动注册和注销过程(下)
查看>>
.net强制退出主窗口的方法——Application.Exit()方法和Environment.Exit(0)方法
查看>>
c# 如何调用win8自带的屏幕键盘(非osk.exe)
查看>>
build/envsetup.sh 简介
查看>>